package com.zhiche.lisa.lspm.dao.model.driver;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 司机报班记录
 * </p>
 *
 * @author qichao
 * @since 2018-08-08
 */
@TableName("lisa_driver_checkin")
public class DriverCheckin extends Model<DriverCheckin> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 司机ID
     */
	@TableField("driver_id")
	private Long driverId;
    /**
     * 司机所属承运商的ID
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 始发区域行政编码
     */
	@TableField("depart_region_code")
	private String departRegionCode;
    /**
     * 始发区域
     */
	@TableField("depart_region")
	private String departRegion;
    /**
     * 目的区域行政编码
     */
	@TableField("dest_region_code")
	private String destRegionCode;
    /**
     * 目的区域
     */
	@TableField("dest_region")
	private String destRegion;
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 报班时间
     */
	@TableField("gmt_checkin")
	private Date gmtCheckin;
    /**
     * 期望装车时间
     */
	@TableField("gmt_exp_load")
	private Date gmtExpLoad;
    /**
     * 车队id
     */
	@TableField("fleet_id")
	private Integer fleetId;
    /**
     * 预计装载台数
     */
	@TableField("amt_exp")
	private String amtExp;
    /**
     * 报班时的位置详情
     */
	@TableField("checkin_addr")
	private String checkinAddr;
    /**
     * 报班时的纬度
     */
	@TableField("checkin_latitude")
	private BigDecimal checkinLatitude;
    /**
     * 报班时的经度
     */
	@TableField("checkin_longtitude")
	private BigDecimal checkinLongtitude;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 牵引车ID
     */
	@TableField("carrier_id")
	private Long carrierId;
    /**
     * 挂车ID
     */
	@TableField("trailer_id")
	private Long trailerId;
    /**
     * 创建人
     */
	private String creator;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDriverId() {
		return driverId;
	}

	public void setDriverId(Long driverId) {
		this.driverId = driverId;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getDepartRegionCode() {
		return departRegionCode;
	}

	public void setDepartRegionCode(String departRegionCode) {
		this.departRegionCode = departRegionCode;
	}

	public String getDepartRegion() {
		return departRegion;
	}

	public void setDepartRegion(String departRegion) {
		this.departRegion = departRegion;
	}

	public String getDestRegionCode() {
		return destRegionCode;
	}

	public void setDestRegionCode(String destRegionCode) {
		this.destRegionCode = destRegionCode;
	}

	public String getDestRegion() {
		return destRegion;
	}

	public void setDestRegion(String destRegion) {
		this.destRegion = destRegion;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtCheckin() {
		return gmtCheckin;
	}

	public void setGmtCheckin(Date gmtCheckin) {
		this.gmtCheckin = gmtCheckin;
	}

	public Date getGmtExpLoad() {
		return gmtExpLoad;
	}

	public void setGmtExpLoad(Date gmtExpLoad) {
		this.gmtExpLoad = gmtExpLoad;
	}

	public Integer getFleetId() {
		return fleetId;
	}

	public void setFleetId(Integer fleetId) {
		this.fleetId = fleetId;
	}

	public String getAmtExp() {
		return amtExp;
	}

	public void setAmtExp(String amtExp) {
		this.amtExp = amtExp;
	}

	public String getCheckinAddr() {
		return checkinAddr;
	}

	public void setCheckinAddr(String checkinAddr) {
		this.checkinAddr = checkinAddr;
	}

	public BigDecimal getCheckinLatitude() {
		return checkinLatitude;
	}

	public void setCheckinLatitude(BigDecimal checkinLatitude) {
		this.checkinLatitude = checkinLatitude;
	}

	public BigDecimal getCheckinLongtitude() {
		return checkinLongtitude;
	}

	public void setCheckinLongtitude(BigDecimal checkinLongtitude) {
		this.checkinLongtitude = checkinLongtitude;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public Long getTrailerId() {
		return trailerId;
	}

	public void setTrailerId(Long trailerId) {
		this.trailerId = trailerId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DriverCheckin{" +
			", id=" + id +
			", driverId=" + driverId +
			", lspId=" + lspId +
			", departRegionCode=" + departRegionCode +
			", departRegion=" + departRegion +
			", destRegionCode=" + destRegionCode +
			", destRegion=" + destRegion +
			", gmtCreate=" + gmtCreate +
			", gmtCheckin=" + gmtCheckin +
			", gmtExpLoad=" + gmtExpLoad +
			", fleetId=" + fleetId +
			", amtExp=" + amtExp +
			", checkinAddr=" + checkinAddr +
			", checkinLatitude=" + checkinLatitude +
			", checkinLongtitude=" + checkinLongtitude +
			", tenantId=" + tenantId +
			", carrierId=" + carrierId +
			", trailerId=" + trailerId +
			", creator=" + creator +
			"}";
	}
}
